LAST_DAY=`date -d"1 day ago" +"%Y%m%d"`
killall data_collector
sleep 10
awk -F"," '{if(NF==27)print $0}' MarketData.csv > ./ori_data/MarketData.${LAST_DAY}.csv
mv MarketData.csv MarketData.csv.bak

sh trans_oridata.sh ./ori_data/MarketData.${LAST_DAY}.csv > ./data/IF.${LAST_DAY}.csv

nohup ./data_collector &
